<template>
  <div class="Goodinfo">
    <h3 class="title">{{arr.title}}</h3>
    <hr>
    <div class="content" v-html="arr.content"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      id: this.$route.params.id,
      arr: {}
    };
  },
  methods: {
    getshuju() {
      this.$axios.get("/api/goods/getdesc/" + this.id).then(res => {
        console.log(res);
        if (res.data.status === 0) {
          this.arr = res.data.message[0];
          console.log(this.arr);
        }
      });
    }
  },
  created() {
    this.getshuju();
  }
};
</script>

<style lang="scss">
.Goodinfo {
  padding: 5px;
  .title {
    font-size: 16px;
    color: rgb(173, 14, 9);
    text-align: center;
  }
  .content {
      tbody{
          width: 100%;
      }
      tr{
          width: 100%;
      }
       td{
          width: 100%;
      }
    img {
        display: block;
      border: 0;
      width: 100% !important;
    }
  }
}
</style>
